package test.edu.tongji.engine.db.dao;

import edu.tongji.engine.db.dao.ActorDao;
import edu.tongji.engine.db.dao.ProcessDao;
import edu.tongji.engine.db.dao.TokenDao;

public class CleanDB {
	public void deleteAllProcess(){
		ProcessDao dao = new ProcessDao();
		dao.deleteALlProcessDefinition();
		
		
	}
	
	public void deleteAllActor(){
		ActorDao dao = new ActorDao();
		dao.deleteAllActor();
		dao.deleteAllRole();
	}
	
	public void deleteAllToken(){
		TokenDao dao = new TokenDao();
		dao.deleteAllTokens();
	}
	
	public void deleteAll(){
		this.deleteAllProcess();
		this.deleteAllToken();
		this.deleteAllActor();
	}
	
}
